package DomainLayer;

import Annotations.AttributeNameAnnotation;

public class CatalogEntity extends AbstractEntity implements IRatingSupportable {
    @AttributeNameAnnotation(Name = "NameOfGenre", isAggregator = false)
    private String name;

    @AttributeNameAnnotation(Name = "MPAARating", isAggregator = false)
    private MPAARatingStatus ratingGenre;

    @AttributeNameAnnotation(Name = "Description", isAggregator = false)
    private String description;


    @AttributeNameAnnotation(Name = "Rating", isAggregator = false)
    private int rating = 0;

    public void setRating(int rating) {
        this.rating = rating;
    }

    public int getRating() {
        return rating;
    }

    public CatalogEntity() {
    }

    public CatalogEntity(String name, MPAARatingStatus ratingGenre, String description) {
        this.name = name;
        this.ratingGenre = ratingGenre;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public MPAARatingStatus getRatingGenre() {
        return ratingGenre;
    }

    public void setRatingGenre(MPAARatingStatus ratingGenre) {
        this.ratingGenre = ratingGenre;
    }
}
